<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <h2>Choose Database:</h2>
    <body>
        <?php
        $User_Name = $_POST['User_Name'];
        $password = $_POST['password'];
        if($User_Name == "Agent" && $password == "Agent"){
            ?>
        <form action="Employee.php" method ="POST">
        <input type=hidden name=User_Name value=<?php echo $User_Name;?>>
        <input type=hidden name=password value=<?php echo $password;?>>
        <input type="submit" name="submit" value="Employee Database">
        </form>
        <form action="Group.php" method ="POST">
        <input type=hidden name=User_Name value=<?php echo $User_Name;?>>
        <input type=hidden name=password value=<?php echo $password;?>>
        <input type="submit" name="submit" value="Group Database">
        </form>
        <form action="Report.php" method ="POST">
        <input type=hidden name=User_Name value=<?php echo $User_Name;?>>
        <input type=hidden name=password value=<?php echo $password;?>>
        <input type="submit" name="submit" value="Generate Reports">
        </form>
        <form action="LogIn.php" method ="POST">
        <input type="submit" name="submit" value="LogOut">
        </form>
        <?php
        }elseif($User_Name == "Admin" && $password == "Admin"){
            ?>
        <form action="Employee.php" method ="POST">
        <input type=hidden name=User_Name value=<?php echo $User_Name;?>>
        <input type=hidden name=password value=<?php echo $password;?>>
        <input type="submit" name="submit" value="Employee Database">
        </form>
        <form action="Group.php" method ="POST">
        <input type=hidden name=User_Name value=<?php echo $User_Name;?>>
        <input type=hidden name=password value=<?php echo $password;?>>
        <input type="submit" name="submit" value="Group Database">
        </form>
        <form action="Report.php" method ="POST">
        <input type=hidden name=User_Name value=<?php echo $User_Name;?>>
        <input type=hidden name=password value=<?php echo $password;?>>
        <input type="submit" name="submit" value="Generate Reports">
        </form>
        <form action="Agent.php" method ="POST">
        <input type=hidden name=User_Name value=<?php echo $User_Name;?>>
        <input type=hidden name=password value=<?php echo $password;?>>
        <input type="submit" name="submit" value="Agent Database">
        </form>
        <form action="Carrier.php" method ="POST">
        <input type=hidden name=User_Name value=<?php echo $User_Name;?>>
        <input type=hidden name=password value=<?php echo $password;?>>
        <input type="submit" name="submit" value="Carrier Database">
        </form>
        <form action="Coverage.php" method ="POST">
        <input type=hidden name=User_Name value=<?php echo $User_Name;?>>
        <input type=hidden name=password value=<?php echo $password;?>>
        <input type="submit" name="submit" value="Coverage Database">
        </form>
        <form action="LogIn.php" method ="POST">
        <input type=hidden name=User_Name value=<?php echo $User_Name;?>>
        <input type=hidden name=password value=<?php echo $password;?>>
        <input type="submit" name="submit" value="LogOut">
        </form>
        <?php
        }else{
            echo "Log In Failed!!!!!";
           ?>
            <form action="LogIn.php" method ="POST">
        <input type="submit" name="submit" value="LogOut">
        </form>
            <?php
        }
        ?>
    </body>
</html>
